package com.xyx.yfy_site_msg.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "yfy_file")
public class YfyFile implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableId(value = "status")
    private Integer status;

    /**
     * 原文件名
     */
    @TableField(value = "old_file_name")
    private String oldFileName;

    /**
     * 新文件名
     */
    @TableField(value = "new_file_name")
    private String newFileName;

    /**
     * 上传人
     */
    @TableField(value = "upload_user")
    private String uploadUser;

    /**
     * 上传时间
     */
    @TableField(value = "upload_time")
    private Date uploadTime;

    /**
     * 文件存储路径
     */
    @TableField(value = "path")
    private String path;

    public static final String COL_ID = "id";

    public static final String COL_OLD_FILE_NAME = "old_file_name";

    public static final String COL_NEW_FILE_NAME = "new_file_name";

    public static final String COL_UPLOAD_USER = "upload_user";

    public static final String COL_UPLOAD_TIME = "upload_time";

    public static final String COL_PATH = "path";
}
